/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.repair.vo;

import io.swagger.annotations.ApiModelProperty;
import org.springblade.modules.repair.entity.MaintainMalfunctionHistory;
import org.springblade.modules.repair.entity.MaintainPlanCheck;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import org.springblade.modules.repair.entity.MaintainPlanContentUser;

import java.math.BigDecimal;
import java.sql.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 质检工单表视图实体类
 *
 * @author ysq
 * @since 2023-11-27
 */
@Data
public class MaintainPlanCheckVO {


	private Long id;

	@ApiModelProperty(value = "项目id")
	private Long buildingId;

	@ApiModelProperty(value = "项目名称")
	private String buildingName;

	@ApiModelProperty(value = "项目别名")
	private String aliasStr;

	@ApiModelProperty(value = "项目详细地址")
	private String buildingAddress;

	@ApiModelProperty(value = "经度")
	private BigDecimal longitude;

	@ApiModelProperty(value = "纬度")
	private BigDecimal latitude;

	@ApiModelProperty(value = "1:非常紧急2:紧急3:普通4:较低")
	private Integer emerProcType;

	@ApiModelProperty(value = "word附件")
	private List<HashMap<String,String>> extWordUrl;

	@ApiModelProperty(value = "描述图片和视频")
	private List<HashMap<String,String>> otherUrl;

	@ApiModelProperty(value = "描述图片和视频")
	private List<HashMap<String,String>> passUrl;

	@ApiModelProperty(value = "工单描述")
	private String passDesc;

	@ApiModelProperty(value = "工单描述")
	private String planDesc;

	private Integer checkStatus;

	@ApiModelProperty(value = "工单id")
	private Long planId;

	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;

	@ApiModelProperty(value = "电梯位置")
	private String elevatorAddress;

	@ApiModelProperty(value = "工单执行时间")
	private Date planDate;

	@ApiModelProperty(value = "工单状态")
	private Integer status;

	@ApiModelProperty(value = "工单创建时间")
	private Date createTime;

	@ApiModelProperty(value = "任务记录")
	List<MalFunctionHistoryVO> malFunctionHistories;

	@ApiModelProperty(value = "最后一次任务")
	private LastPlanVO lastPlan;

	@ApiModelProperty(value = "关联任务的用户")
	private List<MaintainPlanContentUser> planContentUsers;

	@ApiModelProperty(value = "当前用户是否已经有签到记录")
	private Boolean isSign;

	@ApiModelProperty(value = "当天本人同一台梯是否存在签到记录")
	private ElevatorLastPlanVO lastSignImg;

	@ApiModelProperty("问题记录")
	private List<MalFunctionHistoryVO>  maintainMalfunctionHistories;

	private Integer childPlanSize;

	@ApiModelProperty(value = "1:保养质检，2:重复故障质检，3:维保移交质检4:安装移交质检5:常规质检6:维修质检")
	private Integer checkType;


}
